package com.mariusz.data.dto;

import java.io.Serializable;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
public class Room implements Serializable{

	private String name;

	public void setName(String name) {
		this.name = name;
	}
	@XmlElement
	public String getName() {
		return name;
	}

	public String toString(){
		return name;
	}
	
	@Override
	public boolean equals(Object obj) {
		if(obj instanceof Room){
			return name.equals(((Room)obj).getName());
		}
		return super.equals(obj);
	}
}
